﻿using System;
namespace Xtee.Riik.Ee.Xsd.Xtee {
    
    
    public class Jpg : global::Xtee.Core.Schema.XsdBase64Binary {
        
        public Jpg(byte[] value) : 
                base(value) {
            this.Validate();
        }
        
        public Jpg(string value) : 
                base(value) {
            this.Validate();
        }
        
        public Jpg() : 
                base(new System.Byte[0]) {
        }
        
        public static bool TryParse(string value, out global::Xtee.Riik.Ee.Xsd.Xtee.Jpg result) {
            try {
                result = new global::Xtee.Riik.Ee.Xsd.Xtee.Jpg(value);
                return true;
            }
            catch (System.Exception ) {
                result = null;
                return false;
            }
        }
        
        public static implicit operator Byte[] (Jpg value) {
            return value.Value;
        }
        
        public static implicit operator Jpg (byte[] value) {
            return new Jpg(value);
        }
    }
}
